package com.xjm.aop;

import com.xjm.bean.init.ApplicationConfig;
import com.xjm.service.HelloService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author jaymin
 * 2021/2/13 22:33
 */
public class AOPDemo {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = ApplicationConfig.getApplicationContext();
		HelloService bean = applicationContext.getBean(HelloService.class);
		bean.hello();
	}
}
